/**
 * 
 */
package com.game.factory;

import org.springframework.context.ApplicationContext;

import com.game.data.dao.example.PersonDAO;

/**
 * @author Quake
 *
 */
public class GameBeanFactory {
	
	private static PersonDAO personDAO;

	public static void init(){
		ApplicationContext context = SpringUtil.getContext();
		personDAO = context.getBean(PersonDAO.class);
	}
	
	public static PersonDAO getPersonDAO() {
		return personDAO;
	}

}
